<!-- add_drug.html -->

{% extends "base.html" %}

{% block content %}

<h2>药品入库</h2>

<form action="{{ url_for('add_drug') }}" method="POST">
  <div class="form-group">
    <label for="name">药品名称</label>
    <input type="text" class="form-control" id="name" name="name" placeholder="请输入药品名称" required>
  </div>

  <div class="form-group">
    <label for="quantity">数量</label>
    <input type="number" class="form-control" id="quantity" name="quantity" placeholder="请输入药品数量" required>
  </div>

  <div class="form-group">
    <label for="purchase_date">进货时间</label>
    <input type="date" class="form-control" id="purchase_date" name="purchase_date" required>
  </div>

  <div class="form-group">
    <label for="supplier">供应商</label>
    <input type="text" class="form-control" id="supplier" name="supplier" placeholder="请输入供应商名称" required>
  </div>

  <button type="submit" class="btn btn-primary">提交</button>
</form>

{% endblock %}
